#ifndef POLYGONPOINTSMODEL_H
#define POLYGONPOINTSMODEL_H

#include <QAbstractTableModel>
#include "aed_physicscomp.h"

class PolygonPointsModel : public QAbstractTableModel
{
    Q_OBJECT
    AED_PhysicsComp *m_comp;
    QList<AED_PhysicsComp::Point>* m_list;
public:
    explicit PolygonPointsModel(AED_PhysicsComp *comp,QObject *parent = 0);

    int rowCount(const QModelIndex & parent = QModelIndex()) const;
    int columnCount(const QModelIndex & parent = QModelIndex()) const;
    QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const;
    QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
    bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
    Qt::ItemFlags flags(const QModelIndex &index) const;
signals:

public slots:
    void AddPoint();
    void RemovePoint(int index);
signals:

public slots:

};

#endif // POLYGONPOINTSMODEL_H
